<!-- 继承公共视图文件 -->
<extend name="./Application/Admin/View/layout.html" />
 <!-- 可变内容区域 -->
 <block name="mid">

    <div class="layui-row">
      <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px; margin-bottom: 0; float: left;" >
			  <legend style="margin:0">商品类型</legend>
			</fieldset>

      <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px; margin-bottom: 0; float: right;" >
        <a href="{:U('Admin/goods_type/add')}" class="layui-btn layui-btn-primary" style="padding-right:12px;"><i class="fa fa-plus"></i>&nbsp;添加商品类型</a>
			</fieldset>
    </div>
		<div class="layui-row"	>
      <div class="layui-col-sm12">
          <table class="layui-table">
            <thead>
              <tr>
                <th width="50">ID</th>
                <th>类型名称</th>
                <th>显示</th>
                <th>排序</th>
                <th>操作</th>
              </tr>
            </thead>
            <tbody>
               <foreach name="list" key="k" item="v" >
                  <tr>
                      <td>{$v.id}</td>
                      <td>{$v.name}</td>
                      <td>{$v['is_show']?'是':'否'}</td>
                      <td>{$v.sort}</td>
                      <td>
                          <a class="btn btn-success" href="table.html#">
                              <i class="fa fa-search-plus "></i>
                          </a>
                          <a class="btn btn-info" href="{:U('Admin/admin/edit/id/'.$v['id'])}">
                              <i class="fa fa-edit "></i>
                          </a>
                          <a class="btn btn-danger" href="{:U('Admin/admin/del/id/'.$v['id'])}">
                              <i class="fa fa-trash-o "></i>

                          </a>
                      </td>
                  </tr>
              </foreach>
            </tbody>
          </table>
      </div>
    </div>

</block>
